package remote;

import java.io.Serializable;
import java.rmi.RemoteException;
import java.sql.*;

@SuppressWarnings("serial")
public class SimpleMetaData extends ResultSetMetaDataAdapter implements Serializable{
	private RemoteMetaData rmd;

	public SimpleMetaData(RemoteMetaData md) {
		rmd = md;
	}

	public int getColumnCount() throws SQLException {
		try {
			return rmd.getColumnCount();
		}
		catch(RemoteException e) {
			throw new SQLException(e);
		}
	}

	public int getColumnType(int column) throws SQLException {
		try {
			return rmd.getColumnType(column);
		}
		catch (RemoteException e) {
			throw new SQLException(e);
		}
	}
}
